package patterns.actions.memento.document;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		VersionControlSystem vs = new VersionControlSystem();
		Document doc = new Document();
		doc.content = "content1";
		doc.otherContent = "otherContent1";
		System.out.println(doc);
		vs.add(doc.save());
		
		doc.content = "content2";
		doc.otherContent = "otherContent2";
	
		System.out.println(doc);
		vs.add(doc.save());
		
		doc.content = "content3";
		doc.otherContent = "otherContent3";
		System.out.println(doc);
		
		doc.resume(vs.get(1));
		System.out.println(doc);
		doc.resume(vs.getLastVersion());
		System.out.println(doc);
	}

}
